package com.jic.point.mapper;
import com.jic.point.model.entity.ConfSupplier;
import com.jic.point.rest.request.SignData;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
public interface ConfSupplierMapper {
	/**
	 * CONF_SUPPLIER插入数据
	 * @param confSupplier 入参实体类
	 */
	int insert (ConfSupplier confSupplier);

	/**
	 * CONF_SUPPLIER插入数据
	 * @param confSupplier 入参实体类
	 */
	int insertSelective (ConfSupplier confSupplier);

	/**
	 * CONF_SUPPLIER根据表对象数据修改数据
	 * @param confSupplier 入参实体类
	 */
	int updateByPrimaryKey (ConfSupplier confSupplier);

    /**
     * CONF_SUPPLIER根据表对象数据修改数据
     * @param confSupplier 入参实体类
     */
    int updateByPrimaryKeyApply (ConfSupplier confSupplier);
	/**
	 * CONF_SUPPLIER根据表对象数据修改数据
	 * @param confSupplier 入参实体类
	 */
	int updateByPrimaryKeySelective (ConfSupplier confSupplier);

	/**
	 * CONF_SUPPLIER根据id删除数据
	 * @param confSupplier 入参实体类
	 */
	int deleteByPrimaryKey (ConfSupplier confSupplier);

	/**
	 * CONF_SUPPLIER根据主键查询数据
	 * @param confSupplier 入参实体类
	 */
	ConfSupplier selectByPrimaryKey (ConfSupplier confSupplier);

	/**
	 * CONF_SUPPLIER根据主键查询数据
	 * @param confSupplier 入参实体类
	 */
	List<ConfSupplier> listPageBySelective (ConfSupplier confSupplier);
	List<ConfSupplier> listPageBySelectivefreeze (List<Integer> sts);

	/**
	 * CONF_SUPPLIER查询数据
	 * @param confSupplier 入参实体类
	 */
	List<ConfSupplier>  selectBySelective (ConfSupplier confSupplier);
	//通过code查询 供应商
	List<ConfSupplier> selConfSupplierByCode(SignData signData);

    BigDecimal queryAvailablePoint(@Param("code") String busiCode);
}
